package com.xy.decorate;

import java.io.*;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/12 12:08
 * @description
 */
public class InputStreamTest {
    public static void main(String[] args) throws IOException {

        // 装饰者
        DataInputStream dataInputStream = new DataInputStream(new FileInputStream("D:\\桌面\\临时文件\\test.txt"));
        System.out.println(dataInputStream.read());
        dataInputStream.close();
    }
}
